package com.lcf.mulit.test01.mapper;

import com.lcf.mulit.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from t_user where id=#{id}")
    public User queryUserById(@Param("id") String id);

    @Insert("insert into t_user values(#{id},#{name},#{age})")
    public Integer insertUser(@Param("id") String id, @Param("name") String name, @Param("age") int age);
}
